<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>商品选择器</title> <%@ include file="/page/include.jsp"%>
</head>
<body class="nav-md">
	<div class="container body">
		<div class="main_container">
			<div class="framebody" style="min-height: 100%;">
				<div class="row">
					<div class="col-md-12 col-sm-12 col-xs-12">
						<div class="x_panel">
							<div class="x_title">
								<h2>
									<i class="fa fa-pencil fa-fw"></i>查询条件 <small></small>
								</h2>
								<div class="clearfix"></div>
							</div>
							<div class="x_content">
								<form id="product_form" class="form-horizontal form-label-left">
									<input type="hidden" id="couponId" value="${couponId }"/>
									<div class="form-group">
										<label class="control-label col-md-1" for="productName">商品名称：</label>
										<div class="col-md-3">
											<input type="text" id="productName" name="productName" class="form-control col-md-12" placeholder="请输入商品名称">
										</div>
										<label class="control-label col-md-1" for="productCategoryCode">商品分类：</label>
										<div class="col-md-3">
											<input id="productCategoryId" name="productCategoryId" placeholder="商品分类" type="hidden">
											<input id="productCategoryName" readonly="readonly" name="productCategoryName" class="form-control col-md-12" placeholder="请选择商品分类" type="text">
											<i class="glyphicon glyphicon-chevron-down" style="z-index: 100;padding-left: 90%;margin-top: -25px;" onclick="javascript: doChoseProductCategory();"></i>
										</div>
										<label class="control-label col-md-1" for="productStatus">商品状态：</label>
										<div class="col-md-3">
											<select class="selectpicker form-control col-md-12" id="productStatus" name="productStatus">
												<option value="">全部</option>
												<option value="1">上架</option>
												<option value="2">预售中</option>
												<option value="0">已售罄</option>
												<option value="3">下架</option>
											</select>
										</div>
									</div>
									
									<div class="form-group">
										<label class="control-label col-md-1" for="brand">商品品牌：</label>
										<div class="col-md-3">
											<select class="selectpicker form-control col-md-12" id="brand" name="brand" placeholder="请选择商品品牌">
											</select>
										</div>
										<div class="col-md-4">
										</div>
										<div  class="pull-right">
											<a class="btn btn-danger" id="btnClear"><i
												class="fa fa-trash-o fa-fw"></i>清空</a> <a class="btn btn-primary"
												id="btnQuery"><i
												class="fa fa-search-plus fa-fw"></i>查询</a>
										</div>
									</div>
								</form>
							</div>
						</div>
	
						<div class="x_panel">
							<div class="x_content">
								<div class="row" style="padding-bottom: 10px;">
									<a class="btn btn-success btn-sm"  id="btn_add_all" href="javascript:void(0);">全部加入</a>
								</div>
								<div class="row">
									<table id="productTable" class="table"></table>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script src="${rootPath}/js/coupon/product_selector.js"></script>
</body>
</html>